package com.innerclass;

public class StaticInnerClass01 {
    public static void main(String[] args) {
        Outer10 outer10 = new Outer10();
        outer10.m1();
    }
}


class Outer10 {
    private int n1 = 10;
    private static String name = "张三";

    //Inner10就是静态内部类
    //1. 外部类的成员位置
    //2. static修饰
    //3.只能访问静态成员
    //4.能访问外部类的成员
    //5.作用域为整个类体

    private static class Inner10 {
        public void say() {

            System.out.println(name);
        }
    }

    public void m1() {
        Inner10 inner10 = new Inner10();
        inner10.say();
    }
}
